$(document).ready(function() 
{
	//$('.enrolment-form').hide();
	$('#enrolment-status-pre,#enrolment-status-elem').attr('checked', false);
	//
	$(".tab_content").hide();
	//Activate first tab and content.
	$("ul.tabs li:first").addClass("active").show();
	$(".tab_content:first").show();
	//On Open Enrolment.
	$('#enrolment-status-pre-elementary').click(function()
	{
	  $('#pre-elementary').slideToggle();
	});
	$('#enrolment-status-elementary').click(function()
	{
	  $('#elementary').slideToggle();
	});
	//
	$("ul.tabs li").click(function()
	{
		//Remove any "active" class.
		$("ul.tabs li").removeClass("active");
		//Add "active" class to selected tab.
		$(this).addClass("active");
		//Hide all tab content.
		$(".tab_content").hide(); 
		//Find the href attribute value to identify the active tab + content.
		var activeTab = $(this).find("a").attr("href"); 
		//Fade in the active ID content.
		$(activeTab).fadeIn();
		return false;
	});
});